a6bc63
@@ -213,7 +213,7 @@
public int processLine(String line) {
       if(StringUtils.isBlank(oneCmd))
         continue;
       
-      ret = processCmd(removeComments(oneCmd));
+      ret = processCmd(oneCmd);
       lastRet = ret;
       boolean ignoreErrors = HiveConf.getBoolVar(conf, HiveConf.ConfVars.CLIIGNOREERRORS);
       if(ret != 0 && !ignoreErrors) {
@@ -223,10 +223,6 @@
public int processLine(String line) {
     return lastRet;
   }
 
-  private String removeComments(String oneCmd) {
-    return oneCmd.replaceAll("(?m)--.*\n", "\n");
-  }
-
   public int processReader(BufferedReader r) throws IOException {
     String line;
     StringBuffer qsb = new StringBuffer();
